import defaultSettings from '@/settings'
import {
  getAppName
} from '@/utils/auth'

const title = getAppName() || defaultSettings.title || '后台管理系统'

export default function getPageTitle(pageTitle) {
  if (pageTitle) {
    return `${pageTitle} - ${title}`
  }
  return `${title}`
}
